package com.crm.service;

import java.util.List;

import org.springframework.data.domain.Page;

import com.crm.entity.NewsCategory;

public interface NewsCategoryService {

	/**
	 * 
	* @Title: getNewsCategory
	* @author  
	* @Description: 获取所有新闻类别
	* @return
	* @return List<NewsCategory>
	 */
	List<NewsCategory> getNewsCategory();

	/**
	 * 
	* @Title: addNewsCategory
	* @author  
	* @Description: 添加新闻类别
	* @param newsCategory
	* @return void
	 */
	void addNewsCategory(NewsCategory newsCategory);

	/**
	 * 
	* @Title: getNewsCategoryBycategory
	* @author  
	* @Description: 按条件查询分类
	* @param category
	* @return
	* @return Page<NewsCategory>
	 */
	Page<NewsCategory> getNewsCategoryBycategory(String category,Integer pageIndex);

}
